<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<?xml version="1.0" charset="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html>
<head>
  <title>Orden</title>
</head>
<body>
<b>ORDEN # ${requestScope.order.id}</b><br/>
<font size="2"><i>${requestScope.order.customer.name}</i></font><br/>
<a href="OrderServlet?action=Status_Pedidos&return=<%=request.getParameter("return")%>">Volver</a>
<form name="form1" action="OrderServlet" method="post">

<table border="1">
<tr>
  <td>Description</td>
  <td>U</td>
  <td>C</td>
  <td>Sub</td>
</tr>
<c:forEach var="lineProduct" items="${order.products}">
  <tr>
    <td>${lineProduct.product.description}</td>
    <td>${lineProduct.unit}</td>
    <td>${lineProduct.quantity}</td>
    <td><fmt:formatNumber value="${lineProduct.subtotal}" pattern="0.00"/></td>
  </tr>
</c:forEach>

<tr>
  <td>Total:</td>
  <td></td>
  <td><fmt:formatNumber value="${order.totalBoxes}" pattern="0.00"/></td>
  <td><fmt:formatNumber value="${order.total}" pattern="0.00"/></td>
</tr>
</table>
<textarea name="comments" rows="2" cols="35" readonly="true">${order.comments}</textarea>
</form>
<a href="OrderServlet?action=Status_Pedidos&return=<%=request.getParameter("return")%>">Volver</a>
</body>
</html>
